package com.daqsoft.dao;

import com.daqsoft.data.Module;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 周麟东 on 10:51
 */
@Repository
public interface ModuleDao extends JpaRepository<Module,Integer> {
    List<Module> getModuleByLeafOrderByLevel(boolean isLeaf);
    List<Module> getModuleByPModuleOrderByLevel(Module module);
}



